using System.Web.Mvc;
using Animoso.Domain.Data;

namespace Animoso.Web.Controllers
{
    public class HomeController : ApplicationController
    {
        private INewsItemRepository _newsItemRepository;

        public HomeController(INewsItemRepository newsItemRepository)
        {
            _newsItemRepository = newsItemRepository;
        }

        public ActionResult Index()
        {
            return View(_newsItemRepository.GetLatestNewsItems(10));
        }
    }
}
